<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>后台管理</title>
    <!-- 作者：林珈捷 学号：1705050119 -->
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
        crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css"
        integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
        crossorigin="anonymous"></script>
        <style>footer{text-align: center;}
            .right{float: right
            }</style>
</head>

<body>
    <!-- 头部  -->
    <div class="header">

        <div class="container">
            <nav class="navbar navbar-default" role="navigation">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <!-- 这里设标题  -->
                    <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">后台管理系统</a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse navbar-ex1-collapse">
                    <ul class="nav navbar-nav">
                        <!-- 这里设导航链接  -->
                        <li><a href="#"><span class="glyphicon glyphicon-home" aria-hidden="true"></span> 后台首页</a></li>
                        <li><a href="#"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> 用户管理</a></li>
                        <li class="active"><a href="#">内容管理</a></li>

                    </ul>

                    <ul class="nav navbar-nav navbar-right">

                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">admin<b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><span class="glyphicon glyphicon-screenshot" aria-hidden="true"></span>
                                        前台首页</a></li>
                                <li><a href="#"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> 个人主页</a></li>
                                <li><a href="#"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span> 个人设置</a></li>
                                <li><a href="#"><span class="glyphicon glyphicon-credit-card" aria-hidden="true"></span>
                                        账户中心</a></li>
                                <li><a href="#"><span class="glyphicon glyphicon-heart" aria-hidden="true"></span> 我的收藏</a></li>
                            </ul>
                        </li>
                        <li><a href="#">退出</a></li>
                    </ul>
                </div><!-- /.navbar-collapse -->
            </nav>
        </div>




    </div>

    <div class="container">

        <div class="row">
            <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2">
                <!-- 左侧目录  -->
                <div class="list-group">
                    <a href="#" class="list-group-item active">内容管理</a>
                    <a href="#" class="list-group-item">添加内容</a>
                </div>
            </div>
            <div class="col-xs-12 col-sm-10 col-md-10 col-lg-10">
                <!-- 右侧目录  -->


                <div class="panel panel-default">
                    <div class="panel panel-heading">
                        <!-- 放置标题，选项 -->
                        <h1>内容管理</h1>
                        <ul id="myTab" class="nav nav-tabs" role="tablist">
                            <li  class="active"><a href="#gl" role="tab" data-toggle="tab">内容管理</a></li>
                            <li ><a href="#nl" role="tab" data-toggle="tab">添加内容</a></li>
                        </ul>
                    </div>
                    <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active" id="gl">
                        <!-- 这里文章列表 -->

                        <table class="table" >
                            <thead>
                                <tr>
                                    <th>文章标题</th>
                                    <th>作者</th>
                                    <th>发布时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th scope="row">国内首个汽车资讯互动平台诞生</th>
                                    <td>李晓乐</td>
                                    <td>2017/01/20</td>
                                    <td>
                                        <div role="presentation" class="dropdown"><button class="btn btn-defalut dropdown-toggle"
                                                data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
                                                aria-expanded="false">操作 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a href="#">编辑</a></li>
                                                <li><a href="#">删除</a></li>
                                                <li><a href="#">全局置顶</a></li>
                                            </ul>
                                        </div>
                                    </td>

                                </tr>
                                <tr>
                                    <th scope="row">爱奇艺10亿元资金成立创投联盟</th>
                                    <td>李晓乐</td>
                                    <td>2017/01/20</td>
                                    <td>
                                        <div role="presentation" class="dropdown"><button class="btn btn-defalut dropdown-toggle"
                                                data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
                                                aria-expanded="false">操作 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a href="#">编辑</a></li>
                                                <li><a href="#">删除</a></li>
                                                <li><a href="#">全局置顶</a></li>
                                            </ul>
                                        </div>
                                    </td>

                                </tr>
                                <tr>
                                    <th scope="row">胸怀网络世界、强健开发中国、建立有序空间</th>
                                    <td>李晓乐</td>
                                    <td>2017/01/20</td>
                                    <td>
                                        <div role="presentation" class="dropdown"><button class="btn btn-defalut dropdown-toggle"
                                                data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
                                                aria-expanded="false">操作 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a href="#">编辑</a></li>
                                                <li><a href="#">删除</a></li>
                                                <li><a href="#">全局置顶</a></li>
                                            </ul>
                                        </div>
                                    </td>

                                </tr>
                                <tr>
                                    <th scope="row">首个网络空间安全战略筑牢网络强国基石</th>
                                    <td>李晓乐</td>
                                    <td>2017/01/20</td>
                                    <td>
                                        <div role="presentation" class="dropdown"><button class="btn btn-defalut dropdown-toggle"
                                                data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
                                                aria-expanded="false">操作 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a href="#">编辑</a></li>
                                                <li><a href="#">删除</a></li>
                                                <li><a href="#">全局置顶</a></li>
                                            </ul>
                                        </div>
                                    </td>

                                </tr>
                                <tr>
                                    <th scope="row">美播直播实现6人连麦 移动社交再升级</th>
                                    <td>李晓乐</td>
                                    <td>2017/01/20</td>
                                    <td>
                                        <div role="presentation" class="dropdown"><button class="btn btn-defalut dropdown-toggle"
                                                data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
                                                aria-expanded="false">操作 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a href="#">编辑</a></li>
                                                <li><a href="#">删除</a></li>
                                                <li><a href="#">全局置顶</a></li>
                                            </ul>
                                        </div>
                                    </td>

                                </tr>
                                <tr>
                                    <th scope="row">怎样才能成为优秀的前端开发工程师</th>
                                    <td>李晓乐</td>
                                    <td>2017/01/20</td>
                                    <td>
                                        <div role="presentation" class="dropdown"><button class="btn btn-defalut dropdown-toggle"
                                                data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
                                                aria-expanded="false">操作 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a href="#">编辑</a></li>
                                                <li><a href="#">删除</a></li>
                                                <li><a href="#">全局置顶</a></li>
                                            </ul>
                                        </div>
                                    </td>

                                </tr>
                                <tr>
                                    <th scope="row">扎克伯格：真正决定人生高度的，是你做事的速度</th>
                                    <td>李晓乐</td>
                                    <td>2017/01/20</td>
                                    <td>
                                        <div role="presentation" class="dropdown"><button class="btn btn-defalut dropdown-toggle"
                                                data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
                                                aria-expanded="false">操作 <span class="caret"></span>
                                            </button>
                                            <ul class="dropdown-menu">
                                                <li><a href="#">编辑</a></li>
                                                <li><a href="#">删除</a></li>
                                                <li><a href="#">全局置顶</a></li>
                                            </ul>
                                        </div>
                                    </td>

                                </tr>

                                </ul>

                            </tbody>

                        </table>
                        <nav class="pull-right">
                            <ul class="pagination">
                                <li class="disabled">
                                    <a href="#" aria-label="Previous">
                                        <span aria-hidden="true">
                                            &laquo;
                                        </span>
                                    </a>
                                </li>
                                <li class="active"><a href="#">1</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">4</a></li>
                                <li><a href="#">5</a></li>
                                <li><a href="#">6</a></li>
                                <li><a href="#"><span aria-hidden="true">&raquo;</span></a></li>
                        </nav>
                    </div>
                    
                    
                          <div class="tab-pane" id="nl">
                                <table class="table">
                                    <h4><b>标题</b></h4>
                                    
                                    <input type="text" name="" id="input" class="form-control" value="请输入文章标题" required="required" pattern="" title="">
                                    <h4><b>文章内容</b></h4>
                                    
                                    <textarea name="" id="input" class="form-control" rows="14" required="required">请输入正文内容</textarea>
                                    <span><a href="#"><span class="glyphicon glyphicon-modal-window"></span> 全局变量 </a></span>   <span class="right"><input type="button" value="发布文章"></span>

                                </table>

                          </div>

                    </div>
                </div>


            </div>
        </div>

    </div>
<footer>
    
    <div class="container">
        
        <div class="row">
            <div class=" col-md-12 ">
                <p>Copyright 2016-2017 wwww.newsmile.com 京ICP备 11427030 号-9</p>
            </div>
        </div>
        
    </div>
    
</footer>
</body>
<script>
    $(function () {
        $(".list-group a").on('mouseover', function () {
            $(this).addClass("active");
        }).on('mouseout', function () {
            $(this).removeClass('active');
        })
    })
</script>

</html>